package com.base.cn.platform.os.service.course.cou.buy;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.course.CourseBaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * 套餐激活记录接口
 *
 * @author s.li
 * @create 2018-05-28-10:39
 */
@FeignClient(name =  CourseBaseService.appName,configuration = FeignAuthConfig.class)
public interface CourseBuyPackageCourseService extends CourseBaseService {

    /**
     * 自动激活套餐课程
     * @param orderId 订单ID
     * @param orderNo 订单号
     * @param packageIds 套餐课程ID串
     * @param userId 用户ID
     */
    @RequestMapping(contextPath + "/autoActivation")
    void autoActivation(@RequestParam("orderId") BigDecimal orderId,
                        @RequestParam("orderNo") String orderNo,
                        @RequestParam("packageIds") String packageIds,
                        @RequestParam("userId") BigDecimal userId);

    /**
     * 获取学员专业科目
     * @param userId
     * @return
     */
    @RequestMapping(contextPath + "/getUserSubjectIds")
    String getUserSubjectIds(@RequestParam("userId") BigDecimal userId);
}
